<%@page import="java.util.List"%>
<%@page import="com.alibaba.fastjson.JSON"%>
<%@page import="java.util.Map"%>
<%@page import="CustomClassFile.yueli.Yueli"%>
<%@page import="weaver.general.StaticObj"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
response.setHeader("Content-Type", "application/json;charset=UTF-8");//注意加上这一句
String date=request.getParameter("date");
String id=request.getParameter("id");
String type=request.getParameter("type");
Yueli.logger.info("date:"+date+"|id:"+id+"type:"+type);
if(id==null||date==null){
	out.print("{\"code\":-1,\"msg\":\"id或date参数不能为空\"}");
}else{
	if("1".equals(type)){//月历显示
		List<Map<String ,Object>> mapinfo= Yueli.getMonthPb(id, date);
		String mapjson=JSON.toJSONString(mapinfo);
		out.print(mapjson);
	}else{
		Map<String ,Object> mapinfo= Yueli.getinfo(id, date);
		String mapjson=JSON.toJSONString(mapinfo);
		out.print(mapjson);
	}

}
%>
